#include "MarsPrecompile.h"

#include "MarsBlendState.h"
#include "MarsRenderer.h"

using namespace Graphics;

bool BlendState::Create()
{
	HRESULT hr = Renderer::Instance().GetDevice()->CreateBlendState( 
		&m_blendDesc,
		&m_pBlendState );

	if ( FAILED( hr ) )
	{
		return false;
	}

	return true;
}

void BlendState::Delete()
{
	SAFE_RELEASE( m_pBlendState );
}
